<?php
define ( 'IN_SEXMALL', true );

define ( 'DATA_DIR', 'data' );

// 同步REDIS数据到DB
include_once '../config/db.config.php';
include_once '../includes/cls_mysql.php';
include_once '../includes/modules/cps/canal2.php';

try {
	$db2 = new cls_mysql ( DBHOST, DBUSER, DBPWD, DBNAME );
	$csm = canalStatisticsManage::singleton ( $db2, REDISHOST );

	$csm->syncDb ();
	$issync=true;
	// echo "true";
} catch ( Exception $e ) {
	// echo "false";
	$issync=false;
}
